package com.cn.wanxi.service;

import com.cn.wanxi.dao.DesignerDao;
import com.cn.wanxi.model.DesignerModel;

public class AboutService {
    public DesignerModel[] getDesignerModels() {
        DesignerDao designerDao = new DesignerDao();
        int length = designerDao.designerName.length;
        DesignerModel[] designerModels = new DesignerModel[length];
        for (int i = 0; i < length; i++) {
            DesignerModel model = new DesignerModel();
            model.setImgHref(designerDao.imgHrefs[i]);
            model.setDesignerName(designerDao.designerName[i]);
            model.setIntroduce(designerDao.introduce[i]);
            designerModels[i] = model;
        }
        return designerModels;
    }
}
